<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../../commons/taglibs.jsp"%>
<style>
.pf-row {
	margin-bottom: 5px;
}

.pf-row  label {
	display: inline-block;
	width: 30%;
	text-align: right;
}
</style>
<div class="modal fade" data-backdrop="static" id="pf-add-cate-modal">
    <div class="modal-dialog ">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"></button>
                <h3 id="pf-modal-title">添加顶级分类</h3>
            </div>
            <div class="modal-body">
                <form id="pf-cate-save-form" action="/manage/article/cate/save" method="post" enctype="multipart/form-data">
                    <%--分类id，如果为空，则为添加顶组分类 --%>
                    <input type="hidden" class="form-control" placeholder="id" name="id" />
                    <%--父分类id --%>
                    <input type="hidden" class="form-control" placeholder="parentId" name="parentId" />
                    <div class="pf-row">
                        <label> <span class="red">*</span> 分类名称:
                        </label> <input type="text" class="form-control" style="display: inline-block; width: 50%" placeholder="分类名称" name="title" />
                    </div>
                    <div class="pf-row">
                        <label> <span class="red">*</span>字母全称小写:
                        </label> <input type="text" class="form-control" style="display: inline-block; width: 50%" placeholder="分类名称,拼音" name="pinyin" />
                    </div>
                    <div class="pf-row">
                        <label> <span class="red">*</span> 分类排序:
                        </label> <input type="text" class="form-control" style="display: inline-block; width: 50%" placeholder="分类排序" name="orderby" />
                    </div>
                    <div class="pf-row">
                        <label> <span class="red">*</span> 是否隐藏:
                        </label> <input type="radio" style="display: inline-block; width: 5%" name="hidden" value="true"> 隐藏 <input type="radio"
                            style="display: inline-block; width: 5%" name="hidden" value="false" checked> 显示
                    </div>
                  
                    <div class="pf-row">
                        <label style="vertical-align: top"> <span class="red"></span> seo描述:
                        </label>
                        <textarea class="form-control" style="display: inline-block; width: 50%" placeholder="seo描述" name="seoDescription"></textarea>
                    </div>
                    <div class="pf-row">
                        <label style="vertical-align: top"> <span class="red"></span> seo标题:
                        </label>
                        <textarea class="form-control" style="display: inline-block; width: 50%" placeholder=" seo标题" name="seoTitle"></textarea>
                    </div>
                    <div class="pf-row">
                        <label style="vertical-align: top"> <span class="red"></span> seo关键字:
                        </label>
                        <textarea class="form-control" style="display: inline-block; width: 50%" placeholder="seo关键字" name="seoKeywords"></textarea>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn">关闭</button>
                <button type="button" class="btn btn-primary pf-submit">提交</button>
            </div>
        </div>
    </div>
</div>
<%--分类树 --%>
<div class="modal fade" data-backdrop="static" id="pf-move-cate-modal">
    <div class="modal-dialog ">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"></button>
                <h3 id="pf-modal-title">移动到分类:</h3>
            </div>
            <div class="modal-body">
                <ul id="cateTree" class="ztree"></ul>
            </div>
            <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn">关闭</button>
                <button type="button" class="btn btn-primary pf-move-cate-submit">提交</button>
            </div>
        </div>
    </div>
</div>

